<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/3/7
 * Time: 17:21
 */
echo "<title>6-3 条件结构之if…else if… </title>";
echo "<p style='text-align: center'><a href=\"index.php\"><font size=\"4\">目录</font></a></p>";
header("Content-type: text/html; charset=utf-8");
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";

$totalMoney = 0;//总工资
$basicMoney = 200;//基本工资
$sex = "男";

if($sex == "男"){
    $totalMoney = $basicMoney + 0;//男的没奖金
}else if($sex == "女"){
    $totalMoney = $basicMoney + 300;

}
echo $totalMoney;
